Avoid truthy and falsy checks in TypeScript

Truthy and falsy checks in TypeScript hide intent and can introduce bugs. Prefer explicit checks for the values you actually care about.