Having grown up without the context in which this phrase belongs, I've developed what now seems a peculiar habit which becomes apparent whenever I'm approached by a difficult situation.
As a side note,
CAKE = DOUBT.
The appearance of cake without an adequate explanation always seems to result in confusion, mild panic and agitation.
"Where did the cake come from?"
"Is it for me?"
"Will I like it?"
Cake can cause more problems than the sweetly savoured flavour can account for. Beware.