price?: number narrowing via typeof/!== undefined does not work for arithmetic comparisons in TypeScript 5.9 dead code paths; use 'as number' cast to keep the dead code compilable while the early-return guard above prevents runtime execution entirely.