def check_file_extension(filename, extension_list):
    """ Check if the extension file match with the authorized extension list

        :param string filename: Filename to check
        :param list extension_list: The list of extension the file have to match to
        :return: True if the extension is correct, False otherwise
    """
    if len(filename.split('.')) > 1:
        extension = filename.split('.')[-1]
        if extension in extension_list:
            return True
        else:
            return False
    else:
        return False