Use respond_to?
Merge pull request #546 from spastorino/tiny_refactor

Use respond_to?