is_empty was returning the opposite result