public function offsetGet($offset) { return isset($this->documents[$offset]) ? $this->documents[$offset] : null; }