def is_none(type, value):
    """Check if the value is a *NoneValue* in function of the type

    :param type: type of value
    :param value: value to check
    :rtype: *bool*, True if it is a *NoneValue*
    """
    if value is None:
        return True
    if isinstance(value, str) and value.upper() == 'NONE':
        return True
    if value == '' and type is not str:
        return True
    return False
