This would better be <code>$prefix[0]</code> instead of <code>substr($prefix, 0, 1)</code>, I feel like. I think this showed up faster in benchmarks.