Do not compare array against 0
Coverity CID 1111070, CID 1034348, CID 1034347, CID 1034345