fix check for 0 || non-zero

fixes https://github.com/cojs/cogent/issues/18

btw: I found this issue 
@KenanSulayman :stuck_out_tongue_closed_eyes: