public static function createLayout(string $layoutName, View $view): ?Layout
    {
        $layoutsRoot = AppHelper::getInstance()->getComponentRoot('layouts');
        $layoutFile  = $layoutsRoot.\DIRECTORY_SEPARATOR
            .strtolower($layoutName).'.php';
        if (is_readable($layoutFile)) {
            return new Layout($layoutFile, $view);
        }
        return null;
    }