Here you should just be able to check whether `$( "#blocklyWrapper-top" )` returns a valid value, rather than needing to do the `getElementById`.