Avoid incorrectly converting local  variables to boolean values.