yii\db\DataReader::valid PHP Method

valid() public method

This method is required by the interface [[\Iterator]].
public valid ( ) : boolean
return boolean whether there is a row of data at current position.
    public function valid()
    {
        return $this->_row !== false;
    }