created util to assert array arguments