do not use 'if dict.get()' - if the result is an array it breaks.