No, because we might get a non-dict at any step. For example consider the structure:

    {'Reference': {'path': '...'}}

Here we would get to the error ("non dict" stage) at the second step.