don't process empty array if nothing received