In the above context, the variable %prey is a list of types for various monsters.
There are other ways to test that there are no more monsters in range. I would rely on the #findcnt variable after the finditem statement to decide how to proceed.
Gaderian