Change 'type' to hold a single string and use new variable 'holdsCollection' to indicate if the field holds a collection or not.