Union types and narrowingintermediate
A discriminated union makes impossible states impossible: one status field the compiler forces you to handle, instead of three booleans that can contradict each other.
getItem takes an id or a name, and promises a MenuItem it does not always have: a cast hides the undefined, so priceLabel("egusi") crashes. Make every caller deal with "not found".
The return type admits "not found", both branches and the miss work, and nothing overrides the checker.
Published in full, before you start — every point is one of these and there is nothing else. Each one runs your code; it is not a search for keywords.
A discriminated union makes impossible states impossible: one status field the compiler forces you to handle, instead of three booleans that can contradict each other.