fixed bug caused by using improper check for array key
Merge pull request #1201 from JeffPyeBrook/pr-general-settings-region

fixed bug caused by using improper check for array key