public static function hasClass($domElement, $className) {
        $classAttr = $domElement->class;
        $classNames = explode(" ", $classAttr);

        return in_array($className, $classNames);
    }