hasClass method