Test if something is an integer (ES6 Polyfill)