use lodash.isnan instead of Number.isNaN because we live in hell