More verbose check for opened_file