Replace the following
foreach(var item in items) { Debug.WriteLine(item); }
with
items.Each(item => Debug,WriteLine(item));
if (collection == null || !collection.Any()) { collection = new List<string>(); }
if (collection.IsNullOrEmpty()) { collection = new List<string>(); }