Remove unnecessary check

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