var myMysteryVariable1 = document.getElementByClassName("myClass"); if (myName == null) { alert ('it is null!'); }