Since 'settings' is part of the generic payload for all the settings handlers, I think that if we want to check if settings is not an object the problem shouldn't be addressed here but in a generic way before calling the settings handler itself, isn't it?