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 undefined or empty string. An required integer should be able to be zero.