Checks if the current layer has been added to the map
true if the layer is on the map, false otherwise