Not sure: this.outputFormats.getAt(0) would be null, but will add the len check to be on the safe side.