Fixing comparation, empty string doesn't mean it wasn't set

It's better to check if the dictionary entry is null