turns out you need using::isnan too