public function getChild($i) { return isset($this->childNodes[(int) $i]) ? $this->childNodes[(int) $i] : null; }