You probably want to move the right-hand-side of the `if` up as well.

``` ruby
if object_instance.class.const_defined?(:Entity) && object_instance.class.const_get(:Entity).respond_to?(:represent)
...
```

Right?