public function offsetUnset($offset) { $this->offsetGet($offset); prev($this->_data); if (key($this->_data) === null) { $this->rewind(); } unset($this->_data[$offset]); }