Can some help me / eplain to me what i did wrongh?

This looks like it was butchered from code written for checking several channels at once. I assume you are just trying to show if a single streamer is ONLINE/OFFLINE?