added check for whether the range is the leader before initiating splits