def is_true(key, default=False):
value = get(key, default)<EOL>if isinstance(value, list):<EOL><INDENT>value = value[<NUM_LIT:0>]<EOL><DEDENT>if isinstance(value, bool):<EOL><INDENT>return value<EOL><DEDENT>if value is default:<EOL><INDENT>return default<EOL><DEDENT>return value.lower() in TRUE_VALUES<EOL>
Check if the value is in TRUE_VALUES