I think you can replace the `undefined` check above and the string check here with a single: `if (token1 === token2) return true;`