added check if file_content is empty