Only test the first <math> element rather than getting the length of the list.