Improved assignment to object property