remove Number.isNaN() test which Safari 6.1.6 stumbled over