Possibly closest to the original code is `goog.typeOf(data) == 'object'`, right?