Add if statement to prevent the existence of layers with the same name