refactor(pageobjects): simplify hasClasses and remove hasClass