Function wp_list_categories has an argument echo
with you have set to 1 (true). When if it is set to true, instead of returning the value, the function will output the content. Because nothing was returned the var_dump
displays null.
Change the echo
to false in your arguments array to have the value returned.