I would rename the argument name to $field, it fits better for both cases.