def get_service_at_index(asset, index):
    """Gets asset's service at index."""
    matching_services = [s for s in asset.services if s.index == int(index)]

    if not matching_services:
        return None

    return matching_services[0]