 
     @objc private func didTapCheckbox(sender: UITapGestureRecognizer) {
 
-        if let policyIndex = sender.view?.tag {
-
-            if acceptedPolicies.contains(policyIndex) {
-                acceptedPolicies.remove(policyIndex)
-            }
-            else {
-                acceptedPolicies.insert(policyIndex)
-            }
-
-            reload()
-        }
+        guard let policyIndex = sender.view?.tag else {
+            return
+        }
+
+        if acceptedPolicies.contains(policyIndex) {
+            acceptedPolicies.remove(policyIndex)
+        } else {
+            acceptedPolicies.insert(policyIndex)
+        }
+
+        reload()
     }
 
 

        gesture.numberOfTouchesRequired = 1

        cell.checkBox.tag = indexPath.row
        cell.checkBox?.isUserInteractionEnabled = true
        cell.checkBox?.addGestureRecognizer(gesture)

        return cell
    }

        tableView.separatorStyle = .none
        tableView.register(TableViewCellWithCheckBoxAndLabel.nib(), forCellReuseIdentifier: TableViewCellWithCheckBoxAndLabel.defaultReuseIdentifier())

        acceptButton.clipsToBounds = true
        acceptButton.setTitle(NSLocalizedString("accept", tableName: "Vector", comment: ""), for: .normal)
        acceptButton.setTitle(NSLocalizedString("accept", tableName: "Vector", comment: ""), for: .highlighted)
