:) Well I still have mixed feelings as the last 1/3 (starting from line 525) of this function should be executed only if ```inner``` has children. But it doesn't worth arguing as big ```if``` or not-so-early ```return``` won't make this function more readable anyway until we split it :)