     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()

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

            object:nil)
    }
    
    required init?(coder:NSCoder)
    {
        fatalError()
    }
    
    override func layoutSubviews()
    {
        collectionView.collectionViewLayout.invalidateLayout()
