I want to check in a template if an option exists in a list. Very simple. I tried the condition as described here: https://docs.statamic.com/modifiers/in_array

I have

    options_list:
    - email
    - phone
    - address

In my template I check with {{ if (options_list | in_array:email) }}, but this is never true, although the values are correct in debugger (options_list is an array with 0 => email, 1 => phone, 2 => address)

Also {{ options_list | length }} gives "3" and {{ options_list:0 }} "email" as expected.

Any ideas?

Version: 2.11.9