Removed unused `is_valid_name()` function.