https://devhubby.com/thread/how-to-display-a-message-if-database-table-is-empty