I think you want to check if the number of keyed fields == 1, not the payload size.