change to isempty check