validateModalPresence = modal => {
    if (typeof id === 'string' ? !document.getElementById(modal) : !modal) {
      console.warn(`MicroModal: \u2757Seems like you have missed %c'${ modal }'`, 'background-color: #f8f9fa;color: #50596c;font-weight: bold;', 'ID somewhere in your code. Refer example below to resolve it.')
      console.warn('%cExample:', 'background-color: #f8f9fa;color: #50596c;font-weight: bold;', `<div class="modal" id="${ modal }"></div>`)
      return false
    }
  }
Validates whether a modal of the given id exists
in the DOM
@param  {string|object} modal the html ID of the modal, or the modal element itself
@return {boolean}