Is this `else` meant to work with the `if (data_key[0] == 'extras'` block? If so, the indentation is off by one.  Can you also sort out the indentation for the `if` block to reduce confusion?