Was checking if instance var existed before it existe, now checks for local var