Extra if statement for no array of match ids