Check against null, as 0 is a falsy value.