def href_not_hash(tag):
    """
    BeautifulSoup filter function that returns
    false if the tag is None, does not have the href attribute
    or the href attribute of the tag starts with #
    :param tag: The tag to check
    :return: Returns true if the href attribute does not start with #
    """
    if tag is None:
        return False
    elif tag.has_attr('href'):
        return tag['href'][0] != '#'
    else:
        return False