added range check

added level check to DI when .exists was buggin