add checking for anonymous id in options

cc @lancejpollard @yields