Bugfix: Avoid smoothing and reducing if the array is empty