Instead of this entire if check you can just return `flag_value == "1"`. The true false order in `var values` is also opposite