How to check if an item exists?

You could put them in a group, and search the group for item name

You might find this contains relevant ideas