$collection->indexOf() Correct position detection for objects. kirby/src/Cms/Collection.php#L223 $collection->indexOf(string|object $needle): int|false Parameters Name Type Default $needle * string|object – Return type int|false Parent class Kirby\Cms\Collection