def extract_name_and_link(a_object):
    """
    Get the source name and url if it's present.

    Parameters:
    ----------
    - a_object (bs4.element.Tag - `a`) : an a object html tag parsed by beautiful soup 4

    Returns:
    ----------
    - source_name (str) : the plain text source name as included by Ad Fontes Media
    - link (str) : the url location where Ad Fontes Media stores the reliability and bias data
    """
    if (a_object is not None) and (a_object["href"] is not None) and (a_object["href"].startswith("https://adfontesmedia.com")):
        source_name, link = a_object.get_text(), a_object["href"]
        source_name = source_name.replace(" Bias and Reliability", "")
        return source_name, link
    else:
        return None, None