def has_class(element, class_):
    """Checks if an html element (a bs4.element.Tag element) has a certain class.
        Args:
            element(bs4.element.Tag): The element to inspect.
            class_(str): The class that you want to check the element for.
        Returns:
            bool: True if the class exists, False otherwise."""
    return 'class' in element.attrs and class_ in element.attrs['class']
