public function offsetExists($offset) { return is_numeric($offset) && $offset >= 0 && $offset < count($this); }