Solve requirement problem

The parent needs to be required when there is already a root the site. Also, this PR contains a small code simplification.