Add try/catch sequence for isAuthorized()