It checks that the stream is TTY, not a dumb terminal, and not running in a CI. This can be useful to decide whether to present interactive UI or animations in the terminal. It's silly to have to ...