Only report one of the known page identifiers
Changed check to determine whether keywords were provided
Reduced code duplication by combining logic for listing pages into one