Just use ISNAN macro for C/C++/R compat