I propose to rename it to `hasCssClass`. Also I think `explode` can be used instead of regexp.