Won't both of these run all the time. Would it be better to just convert `'false'` to 0 and `'true'` to 1?