Use isMaster command instead of reading the whole replica config to check if server is configured