public static function parseURL(array &$args, $leaveDefaultLocale = true)
    {
        // Iterate defined site locales
        foreach (self::$locales as $locale) {
            // Search locale string as URL argument
            if (($key = array_search($locale, $args)) === 0) {
                // Change current locale
                self::current($locale);

                // If this is not default locale(empty string) - remove it from URL arguments
                if ($leaveDefaultLocale || $locale != self::DEF) {
                    // Remove argument contained locale string
                    unset($args[$key]);

                    // Reindex array
                    $args = array_values($args);
                }

                // Return true status
                return true;
            }
        }

        // If we are here - this is default locale
        // Switch to current web-application $default locale
        self::current(self::DEF);

        return false;
    }