isPositiveSizeClientRect = function (rect) {
        return rect && (rect.width > 0) && (rect.height > 0);
      }
Calculate ClientRect of element; return null if hidden or zero size.
@param {Element|string} element
@returns {null|DOMRect}