Fix functions inside empty() construct
Append script_var in qa_set_up_category_field instead of overwriting