     {
         let size:CGSize
         
-        if MStore.sharedInstance.purchase.mapItems.count > 0 && MStore.sharedInstance.error == nil
+        if arrayKeys.count > 0 && MStore.sharedInstance.error == nil
         {
             size = CGSize(width:0, height:kHeaderSize)
         }

    {
        let size:CGSize
        
        if MStore.sharedInstance.purchase.mapItems.count > 0 || MStore.sharedInstance.error == nil
        {
            size = CGSize.zero
        }

    
    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
    }
