if (d->view && d->interactor) is nice too ;)