Avoid implicit bool conversion

Authored by hindenburg on Oct 6 2018, 6:54 PM.