check if array is not empty in C# code example Example: c# check if array is empty if(array == null || array.Length == 0)