Only iterate over dependencies if mappings do exist.