I'm using DEBUG=true to convert NaN values into exceptions. However, there are other side effects of DEBUG=true that I pick up from using that. Is it possible to convert NaN's to exceptions without other side effects?