private bool CookieJarMissingCookie() { var numPrefs = CookieJar.GetCookies(new Uri(RootUrl)).Cast<Cookie>().Where(c => c.Name == "PREF").Count(); if (numPrefs == 0) return true; return false; }