Language cookie check improvements

No need to check if is empty as the preg_match takes care of that
No need to check for global.php since this check should be done only in Administration when a language is enabled. The less checks we have with every page request the better.