code: def contains_if(self, include_loop=True):
          
          if include_loop:
              return self.type in [NodeType.IF, NodeType.IFLOOP]
          return self.type == NodeType.IF
docs: Check if the node is a IF node
          Returns:
              bool: True if the node is a conditional node (IF or IFLOOP)