[refactor] split assert into several statements