You need to take out ? from ``?Array.<Entry>`` since you initialize it to an empty array and it can never be null.