code: func hasLocaleCookie(request *Request) (bool, string) {
  	if request != nil {
  		name := Config.StringDefault(localeCookieConfigKey, CookiePrefix+"_LANG")
  		cookie, err := request.Cookie(name)
  		if err == nil {
  			return true, cookie.GetValue()
  		}
  		i18nLog.Debug("Unable to read locale cookie ", "name", name, "error", err)
  	}
  
  	return false, ""
  }
docs: // Determine whether the given request has a valid language cookie value.