code: public static Object invokeMethodIfExists(Object instance, String methodName, Object[] args) {
          MetaClass metaClass = getMetaClass(instance);
          List<MetaMethod> methodList = metaClass.respondsTo(instance, methodName, args);
          if (methodList != null && !methodList.isEmpty()) {
              return metaClass.invokeMethod(instance, methodName, args);
          }
          return null;
      }
docs: Invokes a method if it exists otherwise returns null
  
  @param instance The instance
  @param methodName The method name
  @param args The arguments
  
  @return The result of the method call or null