Check if class is abstract before creating model