return None if logs are empty