Break when either (a) layer has no features or (b) text span doesn't exist.