Fix check if share is already connected
Don't use warning to check for errors, only return values