Protection from empty tables for PES and Transaction History