Should be

`var hasOptions = value != null && typeof value === "object";`