Just a note: `instanceof` or `null === $value` are both typically faster than `is_null()`. Also, leaving it as `instanceof` will ensure that if somebody uses a proxy or other pattern to overwrite the value, the assumptions still work.