def has_field(analysis, field):
    """Return true or false if given field exists in analysis"""
    for f in field:
        try:
            analysis = analysis[f]
        except:
            return False
    return True