Personally, I prefer explicitly checking for undefined instead of just checking if the variable is falsy. If something really goofy happens and WYMeditor gets set to null or some other weird thing whose implications I can't currently predict before this call, I would like a big error message if possible.