check if node['locale'] is nil before trying to use its subtree, will throw fatal errors if it is