Simplified isArray check.