Added function is_shared()

Checks whether a given path is already shared.
Perfect :smile: 
Thanks for fixing