use (x===0)

Triple-= (===) is more specific than double-= (==) and is generally preferable when comparing certain values like `null`, `false`, or `0`.