Add check for index existence. 

This prevents a notice when a country is selected which doesn't have a regex pattern in the list above. Examples: Myanmar, Namibia.