How to validate Attachment Names with the values stored in an Array List

I have a list of document names and I need to validate, if the attachment contains either of these documents names.

For this, I have assigned all the document names to an array
How can I validate if the Attachment.Name has either of the values in the Array list.

U can use array.Contains(filename)