code: private function isIncorrectClassNameOrPrefix($className, $prefix)
      {
          if (!preg_match('%^[a-z][a-z0-9\\-_]*$%', $className)) {
              return true;
          }
          if ($prefix !== '' && !preg_match('%^[a-z0-9_/]+$%i', $prefix)) {
              return true;
          }
  
          return false;
      }
docs: Checks if class name or prefix is incorrect
  
  @param string $className
  @param string $prefix
  @return bool