How to check if array includes an environmental variable

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Here’s an outline with best practices for making your inquiry.

My question:
How to check if array includes an environmental variable

Details (like screenshots):
I am using environmental variables for testing.
One of the variables should be part of the array.
How I can verify that its value exist in the array using include function

How I found the problem:

I’ve already tried: