<filename>src/Domain/Extensions/IEnumerableExtensions.cs<gh_stars>0using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

namespace Healox.PermissionServer.Domain.Extensions;

internal static class IEnumerableExtensions
{
    [DebuggerStepThrough]
    public static bool IsNullOrEmpty<T>(this IEnumerable<T?> list)
    {
        if (list == null)
        {
            return true;
        }

        if (!list.Any())
        {
            return true;
        }

        return false;
    }
}