Hi @refreshingdesign
Your code is showing in incorrect use of the $field variable.
This variable is not just for choices, it is for many pther things such as name / label etc.
You need to be modifying the $field[‘choices’], not $field.
Please let me know if this was not clear in the docs.
Thanks
E