Implementing empty subtable removing