Use respond_to?