public function offsetGet($offset) { if (isset($this->nodes[$offset])) { return $this->nodes[$offset]; } return null; }