Checks that file_name is not empty.