ArrayUtils performance tweak

Can you also swap this conditional?