Only print list when it's nonempty