making NaN check more straightforward, capitalizing to be a more recognizable