Actually, there is an end for the "not is_root" check above on line 15. So it is necessary here.