public function hasParameters() { if (is_object($this->parameters)) { return count($this->parameters->getParameters()) > 0; } return false; }