Don't serialize links attr when no links present