fix boolean and numeric values for tv rendering

empty($params['key']) does not work for string "false"