'Check if a option has a valid value'

def check_parameter(self, param_type, parameter):

    if ((parameter == '') or (parameter is None)):
        return False
    elif ((param_type == 'ip') and self.__isipaddress(parameter)):
        return True
    elif ((param_type == 'int') and self.__isint(parameter)):
        return True
    elif ((param_type == 'float') and self.__isfloat(parameter)):
        return True
    elif ((param_type == 'str') and self.__isstr(parameter)):
        return True
    return False
