fix(util) checkArgs: add length check first