Added conditional and function

Added a function to test if any of the prompts are empty. The function
returns a boolean value. The result is read by a negated conditional
that continues running if false is returned, and end the code if true.