Code review changes

Better checking for nil. 
Check for value at each level in the settings hash.