That looks similar to a try/catch... You just called it if/else.
Also, why can't you make the database request in the request pipeline, right before that "if(hasAccess)" statement. You don't need JWT for this...
You are already wrapping all of your controllers...