public function setPerPage($number = null)
    {
        if (is_null($number)) {
            if (property_exists($this->model, 'perPage')) {
                $this->perPage = $this->model->perPage;

                return $this;
            }
        }

        $this->perPage = $number;

        return $this;
    }