def exists_jpg_extension(files):
    """Checks whether any file in files is a jpg image

    Args:
        files: List of filenames

    Returns:
        True if any file is a jpg otherwise False

    """
    has_jpg_extension = ['jpg' in fname for fname in files]
    return any(has_jpg_extension)