bug fix: this condition would not return true if there are more than 1 class on the element