hasComponent(component) {
    let result = false;

    this.everyComponent((comp) => {
      if (comp === component) {
        result = true;
        return false;
      }
    });

    return result;
  }
Check if the component has a component.
@param {import('@formio/core').Component} component - The component to check.
@returns {boolean} - TRUE if the component has a component, FALSE otherwise.