make sure var exists