Added config option for how to handle empty tables by default
updated version