NaN and 0

Rather than return null, you could also look into working with try…catch…finally, and when a null value would be returned, instead throw an error you could then handle.