``isset($this->bundleSettingsByType[$type]) ? $this->bundleSettingsByType[$type] : array()`` should probably be best assigned to a variable before the ``if``