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