fix check for 0 || non-zero