Remove unnecessary check

`usingCookieSessions()` is already taking care of calling this check.