only access the child param if it exists.

The params were being accessed even if they didn't exist. (the check was in the wrong place)
In unguarded mode this would cause maya to crash