add new method isClass() to know if dependency is a class or not