fix for new fields response from elaticsearch
added array check to prevent method exceptions