private function mapStashStorageItems($item, $key)
    {
        if ( is_array($item) ) {
            foreach ( $item as $currentKey => $currentValue ) {
                $item[$currentKey] = $this->{__FUNCTION__}($currentValue, $currentKey);
            }

            return $item;
        }

        return $this->sanitizeStashStorageItem($item, $key);
    }