Optimization for equality checking on equally empty lists.