function isOptionalToken(token) {
  return token.type === 'Punctuator' && token.value === '?.'
}
Checks whether  a given token is a optional token.
@param {Token} token The token to check.
@returns {boolean} `true` if the token is a optional token.