title: Python3: return False on empty cell csv file
body: <p>I have a piece of code that should only execute when 2 cells are not the same:</p>
  
  <pre><code>if row[72] == 'Totaal' and read_cell(74, (i + 11)) != read_cell(74, i):
  </code></pre>
  
  <p>The <code>read_cell</code> function:</p>
  
  <pre><code>def read_cell(x, y):
      y_count = 0
      for n in reader:
          if y_count == y:
              cell = n[x]
              return cell
          y_count += 1
  </code></pre>
  
  <p>However, when <code>read_cell()</code> encounters a 'empty cell' (essentally a list that does not have the requested index) it logically throws the error: <code>IndexError: list index out of range</code></p>
  
  <p>I am trying to only let <code>read_cell</code> return something if the list has 74 columns (starting from 0). One of the many things I tried:</p>
  
  <pre><code>def read_cell(x, y):
      y_count = 0
      for n in reader:
          if y_count == y:
              if len(n) == 74
                  cell = n[x]
                  return cell
              else:
                  return False
          y_count += 1
  </code></pre>
  
  <p>However, this results every False everytime.
  I know I cannot ask others to write code for me but I have run out of ideas on how to make that if statement work.</p>
  
  <p>(note: there are empty columns in the csv file)</p>