Is this the actual code you’re using? Because it’s incomplete and even has a commented TODO section that the actual logic of checking if the stream exists or not still has to be written, so if you haven’t finished writing the code then of course it would return false.
If it’s not the actual code you’re using, could you please show us what the actual request you’re making is.