>> +	$localeCode = preg_match( '/[a-z]{2}([A-Z]{2})?/', $_REQUEST['locale'] ) ? $_REQUEST['locale'] : false;
> 
> Is there a default value if the value isn't valid?

Simply use 'en' as default value