pull request  - shorthand  condition updated 

updating condition  for checking  get parameter value to be not  empty  and not higher than the total number of pages.