code: def has_children(self):
          "returns False if children is empty or contains only empty lines else True."
          return bool([x for x in self.children if not isinstance(x, EmptyLine)]f has_children(self):
          "returns False if children is empty or contains only empty lines else True."
          return bool([x for x in self.children if not isinstance(x, EmptyLine)])
docs: returns False if children is empty or contains only empty lines else True.