Check file before attempting to import.