public function removeChild($i) { if (isset($this->childNodes[$i])) { unset($this->childNodes[$i]); } }