public function isValid() { if ($this->reflection instanceof TokenReflection\Invalid\ReflectionClass) { return false; } return true; }