         }
 
         for indexPath in visibleRows {
-            guard self.subscriptions?.count ?? -1 > indexPath.row else { continue }
-
-            if let subscriptionCell = self.tableView.cellForRow(at: indexPath) as? SubscriptionCell {
-                subscriptionCell.subscription = self.subscriptions?[indexPath.row]
+            guard subscriptions?.count ?? -1 > indexPath.row else { continue }
+
+            if let subscriptionCell = tableView.cellForRow(at: indexPath) as? SubscriptionCell {
+                subscriptionCell.subscription = subscriptions?[indexPath.row]
 
                 if subscriptionCell.subscription == selectedSubscriptionIdentifier {
                     tableView.selectRow(at: indexPath, animated: false, scrollPosition: .none)

    }

    func setupSearchBar() {
        let searchController = UISearchController(searchResultsController: nil)
        searchController.dimsBackgroundDuringPresentation = false
        searchController.hidesNavigationBarDuringPresentation = true

        if #available(iOS 11.0, *) {
            self.searchBar = searchController.searchBar
            navigationController?.navigationBar.prefersLargeTitles = false
            navigationItem.largeTitleDisplayMode = .never


        guard let susbcriptions = Subscription.all() else { return }

        assigned = true
        subscriptionsToken = susbcriptions.observe({ [weak self] changes in
            self?.handleSubscriptionUpdates(changes: changes)
        })
    }

    // swiftlint:disable function_body_length cyclomatic_complexity
