Should check if $path already contains a pipe (which would be possible to encounter). Method itself should perhaps also support other value types - fx ObjectStorage with Resource objects, but this one should be fine as an initial fix/improvement :)