src/Koldy/Response/View.php
public function renderViewIf(string $view, array $with = null): string
    {
        if ($this->exists($view)) {
            return $this->render($view, $with);
        } else {
            return '';
        }
    }
public function renderViewIf(string $view, array $with = null): string
    {
        if ($this->exists($view)) {
            return $this->render($view, $with);
        } else {
            return '';
        }
    }
public function renderViewIf ( string $ view , array $ with = null ) : string { if ( $ this -> exists ( $ view ) ) { return $ this -> render ( $ view , $ with ) ; } else { return '' ; } }
Render view if exists on filesystem - if it doesn't exists, it won't throw any error

@param string $view
@param array $with

@return string
@throws Exception
Render view if exists on filesystem - if it doesn t exists it won t throw any error