Use get_object_vars instead of get_class_vars so we get the current array representation rather than the default one.