public function valid()
    {
        if (!parent::valid()) {
            return false;
        }

        $current = $this->current();
        $key = $this->key();
        $condition = $this->_condition;

        return !$condition($current, $key, $this->_innerIterator);
    }
public function valid()
    {
        if (!parent::valid()) {
            return false;
        }

        $current = $this->current();
        $key = $this->key();
        $condition = $this->_condition;

        return !$condition($current, $key, $this->_innerIterator);
    }
public function valid ( ) { if ( ! parent :: valid ( ) ) { return false ; } $ current = $ this -> current ( ) ; $ key = $ this -> key ( ) ; $ condition = $ this -> _condition ; return ! $ condition ( $ current , $ key , $ this -> _innerIterator ) ; }
Evaluates the condition and returns its result, this controls
whether or not more results will be yielded.

@return bool
Evaluates the condition and returns its result this controls whether or not more results will be yielded .