since divide by zero doesn't crash in js and NaN is falsy, let's just do this instead...