def remove_links_with_no_month_reference(all_links: list) -> list:
    """
    function to remove all links that don't have an association with a month. All entries with None or '\xa0' instead
    of month name.

    args:

        all_links: list -> List of tuples where the first index is the link, second index is the month and third index
        is the year.

    return:
        only_entries_with_month_reference: list -> Returns a list with valid links.
    """

    only_links_with_month_reference = [item for item in all_links if item[1] is not None and item[1] != '\xa0']

    return only_links_with_month_reference