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