Use goog.isNull and goog.isDef