$.merge only work on array. But a function copy all non-exist properties from ```oldPortalDetails``` to ```newPortalDetails``` may work.