Hey you need to check that _posix_isatty_ is available here. Maybe change this line to 

```: (function_exists('posix_isatty') && posix_isatty(1))```