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