Shorten array checks to isArray