#22 hasDependency is now a static method