\"if (!var) {\" is if the variable is non-existent, \"if (var == $null) {\" is if the variable is non-existent or equal to 0