improve JIT inlining of happy path in required attribute check