initial version of hasDependency