is it really necessary to check for `not 0` ? Can you get negative integers? Otherwise, why not just do `if curjobs:` ?