Make public method `isTty()` from Console class

There are other cases you may want to know if you are in an interactive shell or not.
I'm working on a fixer for it to go into php-cs-fixer 1.4 btw.