Add .gitignore
Fixed the if statement