refactor(util) checkExt