function Test-ConfigurationDataValueIsEmpty { [CmdletBinding()] Param( [AllowNull()] $Value ) if($null -eq $Value){ return $true } if($Value -is [string]){ return [string]::IsNullOrWhiteSpace($Value) } if($Value -is [System.Array]){ return @($Value).Count -eq 0 } return $false }