in reply to Check multiple array elements for a single condition

As a contrary opinion, I think your code is fine. It is very clear, short and will execute very efficiently. I see no need to make it "shorter". Any shorter high level version of this will code to the same thing at lower levels. You are fine with this.
  • Comment on Re: Check multiple array elements for a single condition