public bool SourceExist(string sourceXPath) { if (Routes.Where(x => x.Source.XPath.Equals(sourceXPath)).Count() > 0) return true; else return false; }