Should be ```a = deps.size() - 1``` anyway. Or ```a > 0``` and then use ```deps[a - 1]``` instead of ```deps[a]```.