if (list.Count == 0) { /* ... */ }
using System.Linq; // Remember to include this at the top var myStringList = new List<string> {"hi", "there"}; if (myStringList.Any()) { return "The string list is not empty"; }