Use safer test for _X variable filtering.