Checking if children exists breaks refs - SolidJS