Also just doing `$this->_canReadline = extension_loaded('readline') && $handle === 'php://stdin';` was enough.