//Null test for arrays private AudioClip NullTest(AudioClip[] TestArray, int i) { if( (i + 1) <= TestArray.Count()) { if (TestArray[i]) return TestArray[i]; else return ErrorSound; } else { Debug.Log("ERROR: No Audiosource at: " + TestArray.ToString() +" "+ i.ToString()); return ErrorSound; } }