These lines are responsible to show an empty page if no posts are returned from the API. If the empty page is the desired result we should keep this logic here although I think that we could find a bit more elegant solution ;-).