in reply to Re^5: Check for another program availability
in thread Check for another program availability

Stackexchange why not use which and what to use instead argues strongly against using the which command.

BTW, I've always used the type command (never which) -- see here for why. :)