Checking for invalid imports.