Updated MGeneric for isValid() support.