FIX: check for expedition batch lines

check if expedition batch lines are available before foreach