Switch to is_multipart() to detect multipart parts