function _hasClass(el, class_name) {
        return (' ' + el.className + ' ').indexOf(' ' + class_name + ' ') > -1;
    }
checks if a block has a given class

@param {Element} el
@param {string} class_name   class name to check for
@returns {boolean}