I think there was a reason I was using sets before I used this function for smart_forms. Definitely no need for it anymore.