A better idea would be to add to ifArray
Index(x as Dynamic) as Integer
Return the index in the list of the first item whose value is x, -1 if not found
(All implementors of ifArray already do ifArrayGet/ifArraySet - also Delete() is harmonious on integer indexing)
If having to check a long (>100) list though, suggest using a dictionary lookup (i.e. ifAssociativeArray.doesExist(), .lookup() ).
By the way @RokuKC