     private func storeLoaded()
     {
         collectionView.reloadData()
-        
-        if MStore.sharedInstance.purchase.mapItems.count == 0 && MStore.sharedInstance.error == nil
+        arrayKeys = Array(MStore.sharedInstance.purchase.mapItems.keys)
+        
+        if arrayKeys.count == 0 && MStore.sharedInstance.error == nil
         {
             collectionView.isHidden = true
             viewSpinner.startAnimating()

            object:nil)
    }
    
    override func layoutSubviews()
    {
        collectionView.collectionViewLayout.invalidateLayout()

    
    func collectionView(_ collectionView:UICollectionView, cellForItemAt indexPath:IndexPath) -> UICollectionViewCell
    {
        let item:MStorePurchaseItem = modelAtIndex(index:index)
        let cell:VStoreCell = collectionView.dequeueReusableCell(
            withReuseIdentifier:
            VStoreCell.reusableIdentifier,
            for:indexPath) as! VStoreCell
        cell.config(model:item)
        
        return cell
    }
