import re


def is_visible(element):

    """
    Determine if the element should be visible on the web page.

    :param element: object
        BeautifulSoup page element

    :return: boolean
        True to allow element, else false
    """

    # Filter out unwanted elements
    ignore = ['head', 'title', 'style', 'script', '[document]', ]

    if element.parent.name in ignore:
        return False

    # Filter out comment blocks
    elif re.match('<!--.*-->', str(element)):
        return False

    return True