I think you might be able to rewrite this with a little bit less code. Something like this:

```ruby
def title
  subject || first_message && first_message.content.to_s[0..140]
end
```