$empty method with filter parameter