public function offsetExists($offset) { try { $this->_iterator->seek($offset); return $this->_iterator->valid(); } catch (\OutOfBoundsException $e) { return false; } }