What happens if $comparedValue is null or false or an empty string? Doesn't this mess up the messages? Maybe you want to use `var_export($comparedValue, true)` instead.