Return true if any of the element contains the given name in its CSS
name
bool hasClass(String name);