Forgot brackets for if statement that checks file stat