Fixed checking for existing import