set class properties to null instead of `unset`ing them `unset` makes the properties vanish completely. therefore, if you try to access them afterwards, a fatal error is thrown. the true intent of that code was just to empty out the string so instead we will set them to `null`.