if (!state.hasOwnProperty('secFarms') || state['secFarms'].__proto__ == Array.prototype) {
                state['secFarms'] = {};
            }