Translations:Manual:PageExists.php/9/en

It will print out the result to standard output with a meaningful text, and will set the exit status of the script to 0 if the page exists.