Is it compulsary to to specify if(!document.setContent(&file)) while reading?

if(!document.if(!document.setContent(&file))(&file ))