Use filter function to exclude empty params