Add hasClass method