diff --git a/core/Tracker/PageUrl.php b/core/Tracker/PageUrl.php
index be1c31cf00ad6059256367d62eb9c3cec2ac329a..0e5da41ba450a782c1016341a065c6d0e31cb392 100644
--- a/core/Tracker/PageUrl.php
+++ b/core/Tracker/PageUrl.php
@@ -110,7 +110,7 @@ class PageUrl
     public static function shouldRemoveURLFragmentFor($idSite)
     {
         $websiteAttributes = Cache::getCacheWebsiteAttributes($idSite);
-        return !$websiteAttributes['keep_url_fragment'];
+        return empty($websiteAttributes['keep_url_fragment']);
     }
 
     /**