Can you do `if "setResponseType" in xhr` here?