var mods = Modules.InDomain("Some.Domain")....;if (mods.SelectedModules.Count > 0) { // found at least one}// OR check if there's an instanceif (mods.Get().Instance != null) { // we've got a module }[code]