I use an extension. Maybe it is helpful.
public static class DataTableExtensions { public static bool IsNullOrEmpty(this DataTable table) => table is null || table.Rows.Count == 0; }