Question about arrays

Hey there…

Quick question… is there a way to check an array to see if an element has already been added? I’m working with an XML document where there are 4 possible variables, but these 4 vars are repeated several times over. It’s reading in fine… I just want to pull those specific variables out of the XML and add them to an array, but I do not want them to duplicate.

To say it another way… I don’t want my array to be more than 4 items long (it is possible to be less) with a max of those 4 different vars.

Any ideas? Suggestions would be greatly appreciated!!