ensure array value is a number when checking for min/max