public static int GetWidth(this Cell[,] arr) { if (arr.Length == 0) { return(0); } return(arr.Length / arr.GetHeight()); }