Check if recent_blocks is populated before using the data