add check to see if multipart form is nil