Caveat regarding using shortcuts in boolean statements