public function offsetGet($offset) { $res = $this->data->get($offset); if (!isset($res[0])) { trigger_error("{$offset} not exist"); } return $res[0]; }