0){ return output_translations($results); } else{ return output_no_results($word); } } function handle_input(){ if (isset($_GET['word'])){ translate_word($_GET['word']); return true; } else{ return false; } } if (!handle_input()){ // Do something interesting, like output all of a user's words or something. } ?>