you may swap this with previous line and check `if (isDict(openactionDict)) {` here instead