Simplify checking for Access Denied message