Pimcore\Model\Document\Listing::valid PHP Method

valid() public method

Checks whether the listing contains more entries.
public valid ( ) : boolean
return boolean
    public function valid()
    {
        $this->getDocuments();
        $var = $this->current() !== false;
        return $var;
    }