public function valid()
    {
        if (!isset($this->keys[$this->position])) {
            return false;
        }

        $currentKey = $this->keys[$this->position];

        return isset($this->items[$currentKey]);
    }
public function valid()
    {
        if (!isset($this->keys[$this->position])) {
            return false;
        }

        $currentKey = $this->keys[$this->position];

        return isset($this->items[$currentKey]);
    }
public function valid ( ) { if ( ! isset ( $ this -> keys [ $ this -> position ] ) ) { return false ; } $ currentKey = $ this -> keys [ $ this -> position ] ; return isset ( $ this -> items [ $ currentKey ] ) ; }
Determines if there is some value at current iterator position.

@return bool
Determines if there is some value at current iterator position .