In lua the empty value is "nil" instead of "null". Your code only works because variable "null" doesn't exit, and if some goober made a mod that assigns a value to null (lua uses global value by default and in data stage mods aren't sandboxed), your mod's gonna go kaboom