Remove last empty key from array responce

before