private CodegenMethod GetFieldExistsCodegen(
     CodegenMethodScope codegenMethodScope,
     CodegenClassScope codegenClassScope)
 {
     return codegenMethodScope.MakeChild(typeof(bool), GetType(), codegenClassScope)
         .AddParam(field.DeclaringType, "und")
         .Block
         .DeclareVar<object>("value", ExprDotName(Ref("und"), field.Name))
         .MethodReturn(
             LocalMethod(
                 BaseNestableEventUtil.GetBeanArrayValueExistsCodegen(
                     codegenMethodScope,
                     codegenClassScope,
                     nestedGetter,
                     index),
                 Ref("value")));
 }