Oh could it get even cuter in javascript with something like...

    result += this.name || "-";