perhaps it could use if(&x) instead of if(x) to cope with structures as well