code: func (n *Node) isLeader() bool {
  	if !n.IsMember() {
  		return false
  	}
  
  	if n.Status().Lead == n.Config.ID {
  		return true
  	}
  	return false
  }
docs: // isLeader checks if we are the leader or not, without the protection of lock