fix IsEmpty ambiguous error