seems `!array()` works, but we might still change the code below using the $locale parameter to say if `!count($locales)` to be less confusing.