Fix bug, don't iterate through depends if it has length 0