Inverted condition in doesStreamExists for clearer intent