code: function checkIfClassHasReactRender(currentClass) {
    try {
      var getRenderMethod = currentClass.body.body.filter(function (id) {
        return id.type === 'ClassMethod' && id.key.name === 'render';
      });
      return getRenderMethod[0].body.body.filter(function (child) {
        return child.type === 'ReturnStatement';
      }).map(function (stat) {
        return stat.argument.type;
      })[0] === 'JSXElement';
    } catch (e) {
      return false;
    }
  }
docs: /*
  Checks if the the class contains React's render
  method and if it returns a JSX element.