title: Check if directory is empty in Ruby
body: <p>How can I check to see if a directory is empty or not in Ruby? Is there something like:</p>
  
  <pre><code>Dir.exists?("directory")
  </code></pre>
  
  <p>(I know that that function doesn't exist.)</p>