hasName

open fun hasName(): Boolean(source)

Anonymous classes do not have a name, for example.