def in_nrw(residence):
    """
    Checks if the given residence is in NRW
    """
    return (
        residence["geolocation-street"]["street-gemeinde"]["gemeinde-kreis"][
            "kreis-bundesland"
        ]["bundesland-name"]
        == "Nordrhein-Westfalen"
    )