the exit 0 at the end of the script means we will always exit with 0

which means the return 1 statements are useless.