Get Data from Dataset "safely"

I have a dataset (or PyDataset).
I loop throw the data. Something like this:

for row in dataset:
    print row["COLUMN_1"]
    print row["COLUMN_2"]
    print row["COLUMN_3"]
    print row["COLUMN_4"]
    print row["COLUMN_5"]

However, any of the columns could not exist (I can't know it.. ). Is there any way of accesing the data safely so it doesn't throw an exception?
I believe there is not a safe way. I'm really looking for any scripting tip to do it. The idea is to print the row or print 0 if the column doesn't exist.

Thanks!

I don't think there is a straight forward way to do this. Maybe you can use
getColumnNames() function and maybe convert it into a set. Then, before printing you just do an

columnNameSet = set(dataset.getColumnNames())
for row in dataset:
	if "COLUMN_1" in columnNameSet:
		print row["COLUMN_1"]
	else:
		print 0