how to check mds with specfic id exists?