Private/FileHelper.ps1

function Add-PathIfNotExist(
    [string] $path,
    [bool] $isFolder
)
{
    if($isFolder) {
        if (!(Test-Path $path)) {
            $_ = New-Item -path $path -ItemType Directory -Force
        }
    }
    else {
        if (!(Test-Path $path))    {
            $_ = New-Item -path $path -ItemType File -Force
        }
    }
}