Check if attribute is part of array


I’ve an attribute called specs and there could be more than one attribut set. For example bluetooth and wifi.

I know want to check if one specific attribute is set to show an image for that. So I check it like this:

<# if ( data.taxonomies.cert == "wifi") { #>

It works fine for every product with wifi. But if the product also has the attribute bluetooth it doesn’t work anymore.

Is there any option to check if the attribute is in the set?

In the index it’s stored like this:

cert: [ “bluetooth”, “wifi” ]