@Override
    public boolean sessionExists(int session, int subsession) {
        //build the url
        final String commonURL = "http://www.assnat.qc.ca/fr/travaux-parlementaires/journaux-debats/index-jd/";
        String url = commonURL + session + "-" + subsession + ".html";

        //attempt to connect
        try {
            Document sessionPage = Jsoup.connect(url).get();
            String message = sessionPage.select(".imbGauche").text();

            //if their is no session data
            if (message.contains("Aucune séance")) {
                return false;
            }

        } catch (Exception e) {
            //if page does not exist, return false
            return false;
        }

        //the page exists
        return true;
    }