Click event else conditional should only trigger when the element does not contain active class, why is it still triggering?

The click event in the else conditional should only trigger when the .month element does not contain the active class in the class list, why is it still triggering here? How can the functions in the else conditional only trigger if the active class does not exist in the class list of .month?

$(document).on("click", ".month", function(e) {
    e.preventDefault();
    var classMonth = $(this).attr("class").match(/m\-[A-Z][a-z]{2}/);
    if (e.target.classList.contains("active")) {
        return;
    } else {
        if (!!classMonth) {
            self.setupViews(
                moment(classMonth[0].substring(2) + " " + currentMonth.year(), "MMM YYYY")
            );
        }
        self.refreshData();
    }
});