How would I check if a value is in a string array?

Like say there is pages(10) and pages(5) is "rhijaen"

I want it to do something like:

If "rhijaen" isin pages() then
dothis
end if