Array key 'key' is possibly not set resulting in E_NOTICE.