no, there's a method you forgot to call.
Change: (getWorld().getObjects(Rocket.class) != 0)
To: (getWorld().getObjects(Rocket.class).size() != 0)
Like how arrays have a variable called length (arrayName.length), Lists have a size, which is called by that size method.