Use empty string comparison instead of len().