I think the copy/paste in this if statement can be stopped. If we have a function such as `_persistFile` that will take care of the `_.isString` check and return the final uri