src/Headers.php
public function valid()
    {
        if (key($this->_data) === null) {
            return false;
        }

        $current = current($this->_data);
        while (!$current->value()) {
            $current = $this->next();
            if (key($this->_data) === null) {
                return false;
            }
        }
        return true;
    }
public function valid()
    {
        if (key($this->_data) === null) {
            return false;
        }

        $current = current($this->_data);
        while (!$current->value()) {
            $current = $this->next();
            if (key($this->_data) === null) {
                return false;
            }
        }
        return true;
    }
public function valid ( ) { if ( key ( $ this -> _data ) === null ) { return false ; } $ current = current ( $ this -> _data ) ; while ( ! $ current -> value ( ) ) { $ current = $ this -> next ( ) ; if ( key ( $ this -> _data ) === null ) { return false ; } } return true ; }
Returns the current item.

@return mixed The current item or `false` on failure.
Returns the current item .