Please add a guard conditional so that in cases `$dependency_class` is `unset` or empty won't blow up.