Should be

`var isObject = definition != null && typeof definition === "object";`