Shouldn't this check be performed before the call to `field_id()` above?