This if block is in the wrong place as part of a bad merge. I moved it in my upcoming PR back to the listResults function where it belongs.