if (definition['value'] is True or definition['value'] == 'yes') and definition['type'] == 'true_false':