Skip to content

Kirby 4.5.0

$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