using System.Collections.Generic; using System.Linq; namespace BusinessLogic.Extensions { public static class ListExtensions { public static bool IsNullOrEmpty(this IEnumerable me) => !me?.Any() ?? true; } }