public void CheckEmpty() { bool empty = true; for (int i = 0; i < freqs.Length; i++) { empty &= freqs[i] == 0; } if (!empty) { throw new SharpZipBaseException("!Empty"); } }