Why to use isset($params) ? $params is passed through the function so it is set.