Revert "Boolean should be compared strictly"

This reverts commit bedc5d21049cc81d6b114c373be2ca0ab2666081.