In that case (int)$this->getParam('qty", self::DEFAULT_SLIDES) will be better... coz if this param is missing - an error of wrong index will be here.