Fixed an issue with the improperly rest isDefiningATree