public function hasSomeFields($type) { $hasSomeFields = $this->getParameters()->getFieldSet($type) !== []; return $hasSomeFields; }