getSingleCookie = (name, getValue) => {
    const found = document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)');

    return found
        ? (getValue ? found.pop() : name)
        : '';
}
Returns the cookie name/value, if it exists
@param {string} name
@param {boolean} getValue
@returns {string}