Use new Node[0] instead of null to avoid NPE