node['kernel']['machine'] == 'i386' is more portable and commonly seen.