def bool_element(element, name, default=True):
    """
    Returns the bool value of an element, or a default if it's not defined
    :param element: The XML Element object
    :type  element: etree._Element

    :param name: The name of the element to evaluate
    :type  name: str

    :param default: The default value to return if the element is not defined
    :type  default: bool
    """
    element_value = element.find(name)

    if element_value is not None:
        return element_value.text == 'true'

    return default
Returns the bool value of an element, or a default if it's not defined
    :param element: The XML Element object
    :type  element: etree._Element

    :param name: The name of the element to evaluate
    :type  name: str

    :param default: The default value to return if the element is not defined
    :type  default: bool