Interesting, a slightly more obvious form might look like
```ruby
def path_empty?
  d = Dir.new(path)
  d.read # should return '.'
  d.read # should return '..'
  d.read.nil? 
end
```