$share can be undefined