diff --git a/lib/SimpleSAML/Store/RedisStore.php b/lib/SimpleSAML/Store/RedisStore.php
index 20dfd28bda72ec60e9ef692472ddf4a4b557c113..d78871fb6dfc4fb1dd9f8c8b24419f6de1824957 100644
--- a/lib/SimpleSAML/Store/RedisStore.php
+++ b/lib/SimpleSAML/Store/RedisStore.php
@@ -77,9 +77,10 @@ class RedisStore implements StoreInterface
      */
     public function get(string $type, string $key)
     {
+        /** @var string|null $result */
         $result = $this->redis->get("{$type}.{$key}");
 
-        if ($result === false || $result === null) {
+        if ($result === null) {
             return null;
         }