@baloneysandwiches added a hasClass method. closes #1464