check if lastFocusedElement exists