public static bool BillExists() { // ought to be the first thing executed in the bill page string bill = HttpContext.Current.Request["bill"]; BillType type; int session, number; if (bill == null) { throw new UserException("I'm sorry, you have followed an invalid link to GovTrack. A bill was not properly specified in the URL. Please ask the source of the link to correct the problem."); } if (!ParseBill(bill, out session, out type, out number)) { throw new UserException("An invalid bill ID was specified in the URL."); } return(Bills.BillExists(session, EnumsConv.BillTypeToString(type), number)); }