public function valid()
    {
        $valid = $this->valid || $this->validOnNext;
        $this->validOnNext = $this->valid;

        return $valid;
    }
public function valid()
    {
        $valid = $this->valid || $this->validOnNext;
        $this->validOnNext = $this->valid;

        return $valid;
    }
public function valid ( ) { $ valid = $ this -> valid || $ this -> validOnNext ; $ this -> validOnNext = $ this -> valid ; return $ valid ; }
Tells if the iteration is over

@return bool     True if the iteration is not finished yet
Tells if the iteration is over