How correctly to determine online user status on Twitch

Hello I’m working on the Twitch Tv

Here I get some question which I can’t to solve

  1. in the first for() loop I’m trying to determine online status but something is wrong because it’s allways showing ONLINE status.
  2. in the second for() loop I’m trying to bring out to the screen the list of the users but here code generate only random single user.

What is wrong with my code?