Hmm I have also been looking at the manual, is_file emits an error on failure: http://php.net/manual/en/function.is-file.php not sure if thats a good idea