def _allowed_file(filename):
    """
    Checks if the the filename belongs to a zip file.

    :param filename: filename to check
    :return: boolean value
    """
    return '.' in filename and filename.rsplit('.', 1)[1].lower() in ['zip']