need to check for the variable being defined, they are no longer including an empty listings node like they used to