more efficient nil check for pointers to arrays