isRunning queries the switch list entries for a particular program.  If that program is running, isRunning will return 1.