Issue #3422

Fix for issue https://github.com/composer/composer/issues/3422
it would be more readable to return an empty array explicitly (instead of relying on the fact that the property contains an empty array).