lib/API/Values/Collection/Collection.php
public function hasItem(int $position): bool
    {
        return $this->items->exists(
            static function ($key, APIItem $item) use ($position): bool {
                return $item->getPosition() === $position;
            }
        );
    }
public function hasItem(int $position): bool
    {
        return $this->items->exists(
            static function ($key, APIItem $item) use ($position): bool {
                return $item->getPosition() === $position;
            }
        );
    }
public function hasItem ( int $ position ) : bool { return $ this -> items -> exists ( static function ( $ key , APIItem $ item ) use ( $ position ) : bool { return $ item -> getPosition ( ) === $ position ; } ) ; }
Returns if the item exists at specified position.
Returns if the item exists at specified position .