check if class exists when backtracing in View