Fixed isAvl and internal node checker