This is clever, but confusing.  I'd add a comment here noting that 'tones' is guaranteed not to be an array at this point.