public function valid() { if ($this->cacheEntriesIterator === null) { $this->rewind(); } return $this->cacheEntriesIterator->valid(); }