changed polyfill check