get_label function

Get label if wanted and available, or default (name) otherwise