Please set 'acceptsMultiple' not here, but in chooseEntries, so that you couldn't by mistake call that function without this parameter.

It would also be good to set 'acceptMultiple' to false in chooseEntry to avoid similar error.