could `ref.element is dom.Element` possibly be `false` ?