add IsEmpty check member method