diff --git a/src/Provider/FileSession.php b/src/Provider/FileSession.php
index <HASH>..<HASH> 100644
--- a/src/Provider/FileSession.php
+++ b/src/Provider/FileSession.php
@@ -25,7 +25,9 @@ class FileSession implements SessionInterface
 
     public function __destruct()
     {
-        file_put_contents($this->file, '<?php return ' . var_export($this->dataSet, true) . ';');
+        if (count($this->dataSet) > 0) {
+            file_put_contents($this->file, '<?php return ' . var_export($this->dataSet, true) . ';');
+        }
     }
 
     /**
fileSession write if datas are exists