Seems like this would display "multiple" for a lot of pages where it shouldn't. You should check for "rows" before returning multiple.