private function _finishChild(Leaf $child) { if ($child->getParent() !== $this) { $child->setParent($this); } }