Looks good, but too much code changed due to indentation. Let's try:
```
var infoDict;
try {
  infoDict = this.xref.trailer.get('Info');
} catch(e) {
  info(....);
}
if (infoDict) {....
```