simpler
Merge pull request #781 from joaojeronimo/master

simpler isReadStream function