replace respond_to checking with #maybeURI