only remove child nodes when some exist
example, working