Replace lenght() == 0 in favor of isEmpty