The point isn't to error if it can't find the program up set a variable that say it doesn't exist.

e.g. 
variable_name.exists