Improve check existance of old replicas.
Small refactoring.