It'd be a good idea to cast `$this->query->getParam('size')` as an integer, too, if it exists. `getParam()` can return a mixed value.