Remove last empty key from array responce

before
[id] => ticket/135505
....
[TimeLeft] => 0
[] =>

after
[id] => ticket/135505
....
[TimeLeft] => 0