         }
     }
 }
-
->>>>>>> f994c32c51ee6f1d3789c17d5248766d8cdb5357

                        print(error!)
                        completion(false)
                    }
                    
                    if let record = record {
                        print(record)
                        completion(true)
                    }
                    
                })
            }
        } catch {
            print(error)
        }
    }
    
    func getList(completion:  @escaping GetListCompletion) {
        let query = CKQuery(recordType: "List", predicate: NSPredicate(value: true))
        
        self.database.perform(query, inZoneWith: nil) { (records, error) in
            if error != nil {
                print(error!.localizedDescription)

            }
            if let records = records {
                var allLists = [List]()

                for record in records {
                    guard let recordValue = record["items"] as? [String] else { continue }


                    let newList = List()
                    newList.items = recordValue
                    allLists.append(newList)
                }

                OperationQueue.main.addOperation {
                    completion(allLists)
                }
