public function exists(callable $callback): bool
    {
        $index = 0;
        foreach ($this->items as $key => $item) {
            if (true === $callback($item, $key, $index++)) {
                return true;
            }
        }

        return false;
    }
public function exists(callable $callback): bool
    {
        $index = 0;
        foreach ($this->items as $key => $item) {
            if (true === $callback($item, $key, $index++)) {
                return true;
            }
        }

        return false;
    }
public function exists ( callable $ callback ) : bool { $ index = 0 ; foreach ( $ this -> items as $ key => $ item ) { if ( true === $ callback ( $ item , $ key , $ index ++ ) ) { return true ; } } return false ; }
Return true if one item return true to the callback.
Return true if one item return true to the callback .