def is_not_excluded_type(file, exclude_types):
    """Return False if file type excluded, else True"""
    if exclude_types:
        for exclude_type in exclude_types:
            if file.lower().endswith(exclude_type.lower()):
                return False
    return True