check leader only if there is at least one log