Elegant way to test whether something is in a location (even if in a container)

I had an interesting exchange on this topic (ha ha) here- Topic variables and text in I7