Setting filepath in the if statement gives the impression of a typo.