:+1:  Nice use of |in|! just a word of notice, if settings is not an object (e.g. null, undefined etc) this will throw an error.