Shouldn't it be `if( projectBackup && projectBackup.useBackup() ) {`