Shouldn't this use the `contentPage` variable from above for the last comparison?