confirming it works for isNaN and other error cases