bool, whether the term has any constraints

def hasconstraint(self):
        """bool, whether the term has any constraints
        """
        constrained = False
        for term in self._terms:
            constrained = constrained or term.hasconstraint
        return constrained