I think you might need to keep this condition, as the file could just be a string of the contents.