replace usage of #try with #respond_to?

replace the last usage of #try with #respond_to?