removeChildFrom(element, container) {
    if (container && container.contains(element)) {
      try {
        container.removeChild(element);
      }
      catch (err) {
        console.warn(err);
      }
    }

    return this;
  }
Removes an HTML DOM element from its bounding container.
@param {HTMLElement} element - The element to remove.
@param {HTMLElement} container - The DOM element that is the container of the element to remove.
@returns {this} - The instance of the element.