public function valid(): bool
    {
        if ($this->cacheEntriesIterator === null) {
            $this->rewind();
        }
        return $this->cacheEntriesIterator->valid();
    }
public function valid(): bool
    {
        if ($this->cacheEntriesIterator === null) {
            $this->rewind();
        }
        return $this->cacheEntriesIterator->valid();
    }
public function valid ( ) : bool { if ( $ this -> cacheEntriesIterator === null ) { $ this -> rewind ( ) ; } return $ this -> cacheEntriesIterator -> valid ( ) ; }
Checks if the current position of the cache entry iterator is valid.

@return boolean true if the current position is valid, otherwise false
@api
Checks if the current position of the cache entry iterator is valid .