     }
 
     @objc private func didAcceptPolicy() {
-        acceptedPolicies.insert(displayedPolicyIndex!)
+
+        if let displayedPolicyIndex = self.displayedPolicyIndex {
+            acceptedPolicies.insert(displayedPolicyIndex)
+        }
 
         removePolicyScreen()
         reload()

        commonInit()
    }

    private func commonInit() {

        tableView.delegate = self

        gesture.numberOfTouchesRequired = 1

        cell.checkBox.tag = indexPath.row

        cell.checkBox?.isUserInteractionEnabled = true
        if (cell.checkBox?.gestureRecognizers?.count == 0) {
            cell.checkBox?.addGestureRecognizer(gesture)
        }

        return cell
    }
