Replace ArgumentError assertion with respond_to