added class_exists() checks for Customer model since was failing due to class re-declaration; unsure of underlying cause but class_exists solves the issue for now