Skip to content

Kirby 4.1.2

$collections->has()

Checks if a collection exists

$collections->has(string $name): bool

Parameters

Name Type Default
$name * string

Return type

bool

Parent class

Kirby\Cms\Collections