Since it's ignored, the foreach should probably loop over array_keys($commandServices) instead?