appendIf

fun TextComponent.appendIf(condition: Boolean, component: () -> TextComponent): TextComponent