hide pagination when no post exists