Make isDependentOn a virtual function