Replace boolean equality comparisons

Using the boolean result directly is more succint. Discussed with Matt
offline.