filterEmpty made static