hopefully making isBuffer polyfill better