protected function addNewPath($path, $alias, $mode)
    {
        if ($cleanPath = $this->cleanPathInternal($path)) {
            if ($mode === self::MOD_PREPEND) {
                array_unshift($this->paths[$alias], $cleanPath);
            }

            if ($mode === self::MOD_APPEND) {
                $this->paths[$alias][] = $cleanPath;
            }
        }
    }