Simplifying array detection