def is_true(key, default=False):
    """ Check if the value is in TRUE_VALUES
    """
    value = get(key, default)
    if isinstance(value, list):
        value = value[0]
    if isinstance(value, bool):
        return value
    if value is default:
        return default
    return value.lower() in TRUE_VALUES
Check if the value is in TRUE_VALUES