title: How to check if fs.read() is empty
body: <p>I need to check whether a file is empty before I can put it in <code>JSON.parse()</code>.</p>
  
  <pre><code>if (fs.exists('path/to/file')) { // true
     return JSON.parse(fs.read('path/to/file'));
  }
  </code></pre>
  
  <p>I know that the file exists by <code>fs.exists()</code>, but how can I check if the file contains no strings before I can put it in <code>JSON.parse()</code>?</p>
  
  <pre><code>JSON.parse(fs.read('path/to/file'));
  </code></pre>
  
  <p>Returns:</p>
  
  <blockquote>
    <p>SyntaxError: JSON Parse error: Unexpected EOF</p>
  </blockquote>