I need to check if an executable exists, similar to stat where I could check if a file exists by using the stat.exists field.
stat
stat.exists
As the executa