Please suggest another approach then

Perhaps ccall could push! a hidden zero on every array, and set a flag bit?