Check whether file_name is empty whenever file_name is used.