I'd probably check to make sure it's a directory too:

```ruby
return [] unless File.directory?(base)
```