What is the server-side formatter to check if a string exists in an array of strings?

I think the correct use is actually inArray()
It doesnt seem to be fully documented although these posts may help understand it.

and