code: function destroyComponent(instance) {
              if (util.isFn(instance.destroy) && !instance._destroyed) {
                  instance.destroy();
                  instance._destroyed = true;
              }
          }
docs: Call the destroy method on a component instance if it exists and the
  instance has not already been destroyed
  @param   {Object} instance The component instance
  @returns {void}