x !== NaN doesn't do what it looks like it does