/** * Defined by Iterator interface */ public function rewind() { if ($this->_data === null) { $this->read(); } parent::rewind(); }