Don't loop through spawnable types if there's nothing to spawn

Signed-off-by: Ross Allan <rallanpcl@gmail.com>