only test the first <math> element instead of computing the list length