Correctly check for boolean-ness on save.