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