Add conditional to avoid empty treasures tables