paulblessing
it
operator fun MyThing.get(attr: String): String? = if (hasAttribute(attr)) getAttribute(attr) else null ... val animName = it["name"] ?: it["id"] ?: "animation..."