What is the difference between if (!x) and if (x == null); that is, when can their results be different?
if (!x)
if (x == null)
This question/answer has some isTrue isFalse functions which may help folks:
forgiving isTrue isFalse