public static HttpCookie SafeLookup(this HttpCookieCollection dictionary, string key, HttpCookie ifNotFound = default(HttpCookie))
 {
     return(dictionary.TryGetValue(key, out var value) ? value : ifNotFound);
 }