Don't we need `$classname` string instead of `$class` ReflectionClass here?