function hasCookies() {
  if (typeof isSupported !== 'undefined') {
    return isSupported
  }
  const tmp = COOKIE + COOKIE
  try {
    // Try to set cookie
    cookie(tmp, tmp)
    isSupported = document.cookie.indexOf(tmp) !== -1
    // Cleanup cookie
    removeCookie(tmp)
  } catch (e) {
    isSupported = false
  }
  return isSupported
}
Check if browser has cookie support
@returns {boolean}