Branch for josephs comments

die is usually reserved for problems.  In some languages it returns a nonzero (error) code to the shell.  It would be better to use "print" or "echo" and then exit();.