$collection->has() Checks if the given object or id is in the collection kirby/src/Cms/Collection.php#L207 $collection->has(string|object $key): bool Parameters Name Type Default $key * string|object – Return type bool Parent class Kirby\Cms\Collection