Add throw_on_empty param to updatePaths
#374
Merged
throw_on_empty param to updatePaths
#374