fix one line by adding a bang to the if statement