Check settings attribute before accessing.