public function addPath($namespace, $path, $priority = 5)
    {
        if ($path != '') {
            $path = rtrim($path, '/') . '/';
        }
        $namespace = '/' . trim($namespace, '/');
        
        if (! isset($this->paths[$namespace])) {
            $this->paths[$namespace] = [];
        }
        $this->paths[$namespace][] = [
            'path' => $path,
            'priority' => $priority
        ];
        usort($this->paths[$namespace], ['Jivoo\Utilities', 'prioritySorter']);
    }