Introducing a function to check if form submission data exists.