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