function overlayContainsElement(overlayType, element) {
  var overlayElement = element.ownerDocument.querySelector(".ht_clone_".concat(overlayType));
  return overlayElement ? overlayElement.contains(element) : null;
}
Check if the provided overlay contains the provided element

@param {String} overlay
@param {HTMLElement} element
@returns {boolean}