getParent()) { $parent = $parent->getParent(); } if ($parent) { $parent->remove($name); } } }