public function renderViewIf(string $view, array $with = null): string
    {
        if ($this->exists($view)) {
            return $this->render($view, $with);
        } else {
            return '';
        }
    }