This line should be:

    if ($this->_responseType !== null) {