Added function is_shared()

Checks whether a given path is already shared.
Code not reachable ?