Add isDependencyError method to DependencyError