how to check if index of array is empty c# code example Example: c# check if array is empty if(array == null || array.Length == 0)