- fixed error when checking for lots empty (happened when leaving a
page, not sure why, but extra checks in the if keep the error from
happening)
- renamed the function to “isEmpty” for better clarity.