diff --git a/gajim/common/caps_cache.py b/gajim/common/caps_cache.py
index 16ad4ea9fb9fb7c54c5c58d83df1e98e827d1686..6a6ea9a07ca378b0eaa89482f0de001c6a44c821 100644
--- a/gajim/common/caps_cache.py
+++ b/gajim/common/caps_cache.py
@@ -470,6 +470,7 @@ class MucCapsCache:
                 return True
             if nbxmpp.NS_MAM_1 in self.cache[jid].features:
                 return True
+            return False
         except (KeyError, AttributeError):
             return False