Added basic check that settings[key] is not null or false