Hi Johann,
Thanks for your reply. It still didn’t work, but it was my mistake.
I use the table in a custom post type, and copied the first post and edited the information, so that the headers of the table will always be the same.
I just emptied the table’s content without removing the columns and rows.
Obviously, that doesn’t count as it being empty or null.
So, a table is only empty if it doesn’t have any cells or rows.