Fix TS2532: Object Is Possibly Undefined in TypeScript Firebase Functions | CodeTrail