Neither readStreams or writeStreams are ever completely unset and the calling method checks that at least one of them has some sort of contents. There is no need to check if one is an empty array, and if so, supply an empty array.
It was making PHPStorm unhappy :(