isNaN check and fallback