code: function localExists() {
    var testKey = 'test';
    if (typeof window !== 'undefined' && typeof window.sessionStorage !== 'undefined') {
      try {
        window.sessionStorage.setItem(testKey, '1');
        window.sessionStorage.removeItem(testKey);
        return true;
      } catch (error) {
        _logger2.default.error({
          description: 'Error saving to session storage', error: error,
          obj: 'storage', func: 'localExists'
        });
        return false;
      }
    }
    return false;
  }
docs: Gets whether or not local storage exists.
  @param {String} itemName The items name
  @param {String} itemValue The items value
  @return {Boolean}