How to handle optional types in motoko

Thanks for your help. But sadly this looks wrong to me:

Option.iterate(issue, func(actualIssue : Issue) {
   issues := Array.append<Debate>(actualIssue.debate, [debate]);
}

I’m trying to append the Debate to the actualIssue.debate : [Debate] which does not return the initial Array of Issues.

I would the expect something like:

actualIssue.debate : [Debate] := Array.append<Debate>(actualIssue.debate, [debate]);