Extract method has_target