We need to do this check only with ImageData's data array. set will be present for simulated typed arrays https://github.com/mozilla/pdf.js/blob/master/web/compatibility.js#L76