Added method to check if a file exists for a given file path