diff --git a/modules/Bio/EnsEMBL/Storable.pm b/modules/Bio/EnsEMBL/Storable.pm
index ffdd989154f7bb9eba20971e2c45c2ce4dbb8e81..788dba1093aea9421426b1796d0c0618048a2cfd 100644
--- a/modules/Bio/EnsEMBL/Storable.pm
+++ b/modules/Bio/EnsEMBL/Storable.pm
@@ -156,8 +156,8 @@ sub is_stored {
       warning("Storable object has a dbID but not an adaptor.\n" .
 	      'Storable objects must have neither OR both.');
       $message_only_once = 0;
-      return 0;
     }
+    return 0;
   }
 
   if($adaptor && !$dbID) {