cmd_exists
cmd_exists (cmdname)
This function returns 1 (True) if the string specified by cmdname is a valid built-in command or a currently defined alias. For built-in commands, cmdname may specify an unambiguous initial substring or abbreviation. If the command or alias does not exist or is not valid, 0 is returned.