delete key "content" if value equal "undef"