I guess it's better to use `File.directory?` here. Actually, I think it's better to use the `.git` subdirectory:

```ruby
File.directory?(File.join(destination, '.git'))
```