pinFiles should be a boolean and then we can do if(pinFiles)