How can I create a dynamic array of filter objects?

Hey,

I am looking to create an array of filter object that is dynamic (based on the new collection filters)

{%- for filter in collection.filters -%}
  {%- if filter.label == 'Type' -%}
  {%- for filter_value in filter.active_values -%}
      {{ filter_value.label }}
  {%- endfor -%}
{%- endif -%}
{%- endfor -%}

Wondering if anyone has put something like this into an array? the aim is to use this in another module as Type1|Type2

Thanks

Chris