checking for the typeof value for being an object is not sufficient

null also is of type object. this will result in an application crash e.g. when the eq-helper is called without an key.