public bool ServiceExists(string serviceName) { if (string.IsNullOrWhiteSpace(serviceName)) { throw new ArgumentNullException(nameof(serviceName)); } using (var service = new ServiceEditor(serviceName)) { return(service.ServiceExists()); } }