Move the valid options check to the checks done for each layer
Move the valid options check to the checks done for each layer

kyroskoh/leaflet-providers,tomhughes/leaflet-providers,ximex/leaflet-providers,leaflet-extras/leaflet-providers,leaflet-extras/leaflet-providers,tomhughes/leaflet-providers,ximex/leaflet-providers,kyroskoh/leaflet-providers