how do we know objects[2] contains a PDFReference object?