using isempty instead of air