Fix IF when comparing boolean values.