def get_boolean(value) -> bool:
    """Convert a value to a boolean.

    Args:
        value: String value to convert.
    Return:
        bool: True if string.lower() in ["yes", "true"]. False otherwise.
    """
    bool_val = False
    try:
        if value.lower() in ["yes", "true"]:
            bool_val = True
    except AttributeError:
        error = "Could not convert '%s' to bool, must be a string" % (value)
        raise AttributeError(error)
    return bool_val