yes it could but no for the second child
Then we have to have another check for this
Because the first child is just set as this.children
when the second child is added then this.children is not an array
so we need the current behaviour anyway
Only when adding the third (and more) we could use
I was stepping through the wicket code trying to track down a problem
with my page when I ran across some code. In
MarkupContainer.children_add() there's this code:
if (this.children == null)
{
this.children = child;
}