diff --git a/src/FakesCompilation.php b/src/FakesCompilation.php
index 8c5a568..17d6eae 100644
--- a/src/FakesCompilation.php
+++ b/src/FakesCompilation.php
@@ -27,7 +27,7 @@ trait FakesCompilation
 
         $validDocuments = $compilations->filter(fn ($compilation) => $check($compilation));
 
-        Assert::assertNotEmpty($validDocuments, 'Failed that TeX Document "' . $documentClass . '" has been compiled with given check.');
+        Assert::assertFalse($validDocuments->isEmpty(), 'Failed that TeX Document "' . $documentClass . '" has been compiled with given check.');
     }
 
     /**