fix boolean and numeric values for rendering. empty($params['key']) does not work for string "false"