Could this not be shortened to just `if (service) { ...` because it will either be pending or loaded.