Check existence of a field and checking null value in field

Developing further the idea of using the ruby filter, can you try something like this?

                    code => "
					if event['column16'] == nil
						event['log_type'] = 'type2'
					else
						event['log_type'] = 'type1'
					end					
			"
	}```