add isempty to check to import