Compare static mesh array with integer and equal do something

Is it possible to compare these two different types of array and if they match do something.

In a widget run a for loop to see if the static mesh array has been collected and add an image to screen?

Do they need to be static meshes? Why not use objects? Also, try avoiding doing too much in a widget, have an inventory object and handle it there.