return True if value has been set

def has_value(self):
        """return True if value has been set"""
        try:
            if isinstance(self.__value, Expression):
                return self.__value.has_value
            return True
        except AttributeError:
            return False