Fix total handling when data is false returned from $wpdb silent error
More traversal work