Use command_exists function