diff --git a/psalm.xml b/psalm.xml
index 03be8a9..67ace92 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -7,7 +7,10 @@
-
-
+
+
+
+
+
diff --git a/src/AntiCSRF.php b/src/AntiCSRF.php
index a487c7c..58b9fe1 100644
--- a/src/AntiCSRF.php
+++ b/src/AntiCSRF.php
@@ -313,8 +313,8 @@ public function validateRequest(): bool
}
if (
- !isset($this->post[$this->formIndex]) ||
- !isset($this->post[$this->formToken])
+ empty($this->post[$this->formIndex]) ||
+ empty($this->post[$this->formToken])
) {
// User must transmit a complete index/token pair
return false;