 
     override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
 
-        guard let item = items[safe: UInt(indexPath.row)] else { return }
+        guard let item = items?[safe: UInt(indexPath.row)] else { return }
 
         if item.isFolder {
             let scene = CloudSourceDetailScene(filestack: filestack,

            self.currentRequest = nil

            guard let contents = response.contents else { return }
            let items = contents.flatMap { CloudItem(dictionary: $0) }

            self.items.append(contentsOf: items)
            self.pageToken = response.nextToken
            self.tableView.reloadData()
        }


    override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {

        if indexPath.row == items?.count && currentRequest == nil {
            loadNextPage()
        }
    }
