or...

a) using nodes to store what is at each position

b) use ent_next to cycle through the entities to see if any are