This no longer properly copes with array or non-object types