getParams(); if (is_numeric($param)) { return true; } if (empty($param) || !isset($param[$this->field])) { return $this->addError('The param :attribute not exists'); } else { return true; } } }