You don't have to do all those comparisons at all. Either its 0 or false, then skip that block, or its a number which evaluates to true. So there is no need to complicate the code by negating comparisons against false.