Rename property => key to better indicate what it represents.
Rename expandedKey => expandedProperty.
Simplify understanding conditional by reversing via modus tollens.
Use expandedValue var name to better distinguish from value.
Fix typos.
Combine conditional.
Remove now unnecessary optimization.
Simplify @value checks in expansion, rename var names.
Remove unnecessary step.