check if current client is master