Test-ChocolateyPackagePath.ps1

function Test-ChocolateyPackagePath() {
    Param(
        [string] $PackageName,
        [switch] $Multiple
    )

    if(Test-Path "$Env:ChocolateyInstall\lib\$packageName") {
        return $true;
    }

    $folders = gci "$Env:ChocolateyInstall\lib\$packageName.*"

    if($folders -eq $null -or $folders.Length -eq 1) {
        return $false;
    }

    if($Multiple.ToBool()) {
        foreach($folder in $folders) {
            $folderName = $folder.Name;
            $index = $folderName.LastIndexOf(".");
            $char = $folderName[$index + 1];
            if([System.Char]::IsDigit($char)) {
                return $true;
            }
        }
    }

    return $false;
}