$a5 = array_slice($arr, -5);
if(empty($transport[count($transport)-1])) { unset($transport[count($transport)-1]); }