Simplify condition for skipping an AN import