def is_none(val):
    """
    Check if a value is None.

    :param val: the value to be tested
    :return: returns false if the value is not none
    """
    if val is None:
        raise TypeError('None detected')
    return False
