Removed the areArray check from the already convoluted `if` check for clarity as suggested by @jdalton