if julia array length is 0,then return R_NilValue