reduce the logic in detecting the empty or full archive