bug fix; ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
(is a follow-up to r11707)

https://mediawiki.org/wiki/Special:Code/pywikipedia/11709