Fix checks for ES6.