def clear_nones_filter(v):
    """
    Filter function for clear_nones.

    Returns False if v is None, else True.
    """
    if isinstance(v, dict):
        if len(v.keys()) == 0:
            # removing empty dictionaries breaks SeqLib recognition
            # return False
            return True
        else:
            return True
    elif v is None:
        return False
    else:
        return True