<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_value_of_type(self, var_type):
 """ Does the variable both have the given type and have a variable value we can use? """

        if self.has_value() and self.has_type(var_type):
            return True
        return False