Fix the typo in Builder.php

Should call the $item->title instead of $item->title(), also, typo for the $item->hasChilderen()