created if statement to test var good

created if statement to test var good