src/Helpers.c: move array's limit check first.