public function load(string $file): string
    {
        if ($this->childTheme && file_exists($this->themePath . '/' . $this->childTheme['name'] . $file)) {
            $this->preventDirectoryTraversal(
                $this->themePath . '/' . $this->childTheme['name'],
                $this->themePath . '/' . $this->childTheme['name'] . $file
            );

            return $this->themePath . '/' . $this->childTheme['name'] . $file;
        }

        if (!file_exists($this->themePath . '/' . $this->theme['name'] . $file)) {
            throw new NotFoundException('The template file (`' . $file . '`) could not be found in the theme.');
        }

        $this->preventDirectoryTraversal(
            $this->themePath . '/' . $this->theme['name'],
            $this->themePath . '/' . $this->theme['name'] . $file
        );

        return $this->themePath . '/' . $this->theme['name'] . $file;
    }