hasClass (element, className) {
    return !!element.className.match(className);
  }
Convenience function to check if an element has a class
@param  {Node}    element   Element to check classname on
@param  {string}  className Class name to check for
@return {Boolean}           true, if class is available on modal