[#2212] CID84917:

don't compare array to null. also, null-check the correct variable