has_child

returns True if every element have child element(s).

Source


def has_child(self):
    for node in self:
        if not node.has_child(): return False
    return True