Pretty sure you could do
```ruby
if project.image.exists?
```