function accept() { return $this->hasChildren() || parent::accept(); }
/** * Simply invert the accept() function * */ public function accept() { return !parent::accept(); }