check if the term is a dict so we can take a simple list of files (like first_available_file) takes