def field(s, n, d):
    """
    Engage does not put empty fields into the JSON from API calls.
    That means we need to be careful when try to get fields from a
    dict parsed from JSON provided by Engage.  
    
    This function checks to see if a field ('n') is in a dict ('s').
    If the answer is yes, then the value is returned.  If no, then
    'd' is returned. """ 

    if n in s:
        return s[n]
    else:
        return d