has

abstract fun has(name: String): Boolean(source)

Whether the object has name, its own or inherited, as the in operator answers.