def check_month(month_number, month_list):
    """
    Check if a month (as integer) is in a list of selected months (as strings).

    Args:
        month_number: The number of the month.
        month_list: A list of months as defined by the configuration.

    Returns:
        Bool.
    """
    month_map = {
        1: 'january',
        2: 'february',
        3: 'march',
        4: 'april',
        5: 'may',
        6: 'june',
        7: 'july',
        8: 'august',
        9: 'september',
        10: 'october',
        11: 'november',
        12: 'december',
    }
    return month_map.get(month_number, '') in month_list