fix (min/max): null must return true, NaN must return false