Use .is_empty() instead of comparison with empty string