doesFileExist worked. I didn't :)
at least I know
let's call this an ugly but working version