You can do a bunch of things. My example, I’m using a touch controller, so I take that list and pick the one nearest to a given world location (the center of my motion controller).
For you, you probably want to grab the closest object in that list, check if it is valid, and if not then remove it from the array and check the next closest object.
That’s my best assumption without a more in depth idea of what you’re trying to pull off.