How would I validate that a program exists, in a way that will either return an error and exit, or continue with the script?
It seems like it should be easy, but it\
Use Bash builtins if you can:
which programname
...
type -P programname