Maybe this instead then:

// Remove rows where categoryName is empty