"if (getObjects(Worm.class) == null)"
Didn't know you could do that :0.
I do now, thanks!
Actually, this code is wrong. If you check the documentation for the "getObjects" method (in the World class) you will see that it returns a List. It can never return null, but it may return an empty list! The corrected version of the above code would be:
if (getObjects(Worm.class).isEmpty())