fix for securejson on empty array