Detecting replica set existence using isMaster