Correct logic of payload check in group_write