def is_none_type(to_check):
    """
    :param to_check: the type to check.
    :return: ``True`` if ``to_check`` is either ``NoneType`` or ``None`` (acceptable alias of ``NoneType``).
    """
    if to_check is None:
        return True
    if to_check is type(None):
        return True
    return False