check that form.parent is null, not empty

Because FormView implements ArrayAccess, "form.parent is empty" evaluates to true if the form has a parent with no children, as is the case for new collections.