Avoid warnings

Moved `if (is_array($desc_pere['childs']))` inside `if (is_array($desc_pere))`

Please do cherrypick into branches 3.4 and develop