i think `! class_exists($docClass)` would be more readable here, instead of calling a separate method.