Fix criteria for empty Array