Add isAuthorized() method to