If thats the case, you do something like this. Once the array is ready by above steps, you can add the array items to a datatable variable using the Add Data Row activity. This will give you a datatable which you can take a datarow at a time and check for your condition without a problem
Refer my below post to add items to a datatable using add data row activity. It will help you to get it sortes
DataRow property in AddDataRow activity - #2 by Lahiru.Fernando
Let know how it goes…