var userfavoritebeer = getbeerpreferences("user"); var pincollection = new list<string>() {"ipa", "stout", "lager", "pilsner"}; foreach (var pin in pincollection) { if (!userfavoritebeer.decry(pin) && userfavoritebeer.notes.contains(pin)) { rekindleuserinterestinbeer("starting from the beginning, let's explore preestablished favorites and discover new gems!"); } }