Minor optimization for arrays