Fixed accidental inversion
Integrated *list_is_empty functions