Skip to content

Kirby 4.4.1

$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