Change min and max existence check to validate against undefined. Using ! causes a false positive when one of the values is 0.