Ensure importer checks for undefined before importing