simplify check if name exists