Added check if spreadsheetfile exists on checkSpreadsheetHeaders