protected function validateFeatureArray($features, ProviderInterface $provider)
    {
        if (!is_array($features)) {
            $this->logger->error('Feature provider {provider} did not provide an array of features', [
                'provider' => $provider->getName()
            ]);

            return [];
        }

        return $features;
    }