Translations:OOUI/Creating interfaces programmatically/20/en

You can check if the element is currently attached using the $1 method.