set body to null if empty