check whether path is evil