feature(util) checkArgs speed up: for -> while