Checking isArray on the nextToken was unnecessary.