Fix: badly transformed.

was:

if index > self.count_logs():
    return False