We need to make sure that x is not zero. Zero is a falsy value so without checking the test would treat zero same as undefinded or empty string. An integer should be able to be zero.