The check suggested by @hacfi is not about the existing of the key (you get a notice if it does not exist) but about the content of the array.
The goal would be to load the listener only when ``$config['additionnal_formats']`` is not empty. Registering the listener with an empty list of format is just wasting time at runtime as the listener would do nothing