Removed hasClass method