Perhaps add a default of the empty list here, in case it is undefined (so the function won't crash).