private bool HasTrue(ref bool[] array) { for (int i = 0; i < array.Length; i++) { if (array[i]) { return true; } } return false; }