Bugfix: an empty array is the same as a null array for regions_and_path