def parsebool(el):
    """
    Parse a ``BeautifulSoup`` element as a bool
    """
    txt = text(el)
    up = txt.upper()
    if up == "OUI":
        return True
    if up == "NON":
        return False

    return bool(parseint(el))
Parse a ``BeautifulSoup`` element as a bool