has

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

Whether the link has the attribute name, with or without a value.