public static int GetIndexOfFirstNonEmptyBin(int[] bins) => Array.FindIndex(bins, value => value != 0);
public static int GetIndexOfFirstNonEmptyBin(int[] bins) => Array.FindIndex(bins, IsNonZero);