You can replace this line with ``positions: positions || []`` and remove the above if statement for simplicity.