preventing undefined is not a function when Resource response config is setted "isArray"