def has_core_metadata(response, file_type):
    """
    Return True if a query response contains core metadata, False otherwise.
    """
    try:
        # try to access the core_metadata
        response["data"][file_type][0]["core_metadata_collections"][0]
    except:
        return False
    return True