```
return File.size?(path) unless File.directory?(path)
```
?