I believe you should just be able to do this, and have it work for either one group or multiple, returning an array:

`added_supplementary_groups = supplementary_groups.split(',')`

Try it out and see if it works for you - it would save you the need to write the helper method