Only access settings object if it exists