“cmd.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)
def get_type(name,quiet=1):
get_type | cmd.get_names | api