Can ` $classNameIsPrefix && $classNameIsShorter` be replaced by `0 === strpos($templateClass, $currentClass)`?