Function to find if a pid or a datastream is public or not.

https://www.pivotaltracker.com/story/show/51046813