Check stream live is online or not

I removed my client id in my former comment, although the one in my actual code is valid. So no data = offline?