get_type returns a string describing the named object or selection or the string "nonexistent" if the name in unknown.
cmd.get_type(string object-name)
Possible return values are
Cmd get_names