add braces to the single statement 'if', or write it as `x = (x !== null && x !== undefined) ? x : 0;`