Why not use the API Director::fileExists?