check array exists before using it as default value.
update to latest media 7.x-2.x-dev.
code hints.