#1 checking if response is array before using shift()