diff --git a/src/lib/waku_message/version_1.ts b/src/lib/waku_message/version_1.ts
index 19ae218ad0..ca681579ef 100644
--- a/src/lib/waku_message/version_1.ts
+++ b/src/lib/waku_message/version_1.ts
@@ -222,14 +222,9 @@ function validateDataIntegrity(
     return false;
   }
 
-  if (
-    expectedSize > 3 &&
-    Buffer.from(value).equals(Buffer.alloc(value.length))
-  ) {
-    return false;
-  }
-
-  return true;
+  return !(
+    expectedSize > 3 && Buffer.from(value).equals(Buffer.alloc(value.length))
+  );
 }
 
 function getSignature(message: Buffer): Buffer {