Source
def has_child(self):
for node in self:
if not node.has_child(): return False
return True
returns True if every element have child element(s).
def has_child(self):
for node in self:
if not node.has_child(): return False
return True