                                                         parameters: strongSelf.getParams(title),
                                                         retry: nil,
                                                         success: { (operation, responseObject) in
-                                                            guard let strongSelf = self else { return }
+                                                            guard let strongSelf = self, responseDict = responseObject as? [String: AnyObject] else { return }
                                                             MWNetworkActivityIndicatorManager.sharedManager().pop()
-                                                            strongSelf.updatePagingState(responseObject)
-                                                            resolve(strongSelf.parseSections(responseObject))
+                                                            strongSelf.updatePagingState(responseDict)
+                                                            resolve(strongSelf.parseSections(responseDict))
                                                             },
                                                         failure: { (operation, error) in
                                                                 MWNetworkActivityIndicatorManager.sharedManager().pop()

    private typealias RevisionCurrentPrevious = (current: WMFPageHistoryRevision, previous: WMFPageHistoryRevision)
    private typealias RevisionsByDay = [Int: WMFPageHistorySection]

    private func parseSections(rawResponse: AnyObject) -> [WMFPageHistorySection] {
        guard let pages = rawResponse["query"]??["pages"] as? [String: AnyObject] else {
            assertionFailure("couldn't parse page history response")
            return []
        }

    private var rvContinueKey: String?
    var batchComplete: Bool = false
    
    private func updatePagingState(responseDict: [String: AnyObject]) {
        if let continueInfo = responseDict["continue"] as? [String: AnyObject] {
            continueKey = continueInfo["continue"] as? String
            rvContinueKey = continueInfo["rvcontinue"] as? String
        }
        if responseDict["batchcomplete"] != nil {
            batchComplete = true
        }
    }
