Simplify + correct placement of service existence check in ServiceManager::isShared