checkForDependenceis