check if panel content is empty