Check if body is set before checking pipe