Or if you want, you can do:
```a[:vcenter][:interface] = a[:esxi][:interface] unless a[:esxi][:interface].nil?```