stop loops if page view data doesn't exist