fix empty checker