OPT: Prevent check_array being called twice in check_pairwise