Dealing with empty tables