Add file exists check