Simplify check for allowed method