adding ifZero parameter, fixing repeatingrow if json data is not array